﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WpfStudy
{
    /// <summary>
    /// SelectMirrorType.xaml 的交互逻辑
    /// </summary>
    public partial class SelectMirrorType : Window
    {
        public SelectMirrorType()
        {
            InitializeComponent();
        }

        private void btn_ok_Click(object sender, RoutedEventArgs e)
        {
            string text = "";
            if ((radioScreen.IsChecked==null || radioScreen.IsChecked == false) ? false:true)
            {
                text = string.Concat(radioScreen.Content);
            }
            else if ((radioWebcam.IsChecked == null || radioWebcam.IsChecked == false) ? false : true)
            {
                text = string.Concat(radioWebcam.Content);
            }
            else if ((radioMircophone.IsChecked == null || radioMircophone.IsChecked == false) ? false : true)
            {
                text = string.Concat(radioMircophone.Content);
            }
            else
            {
                text = "未选择";
            }
            
            Console.WriteLine(text);
        }
    }
}
